<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<table border="1" style="width: 700px">
  <thead>
  <tr>
    <td>姓名</td>
    <td>性别</td>
    <td>年龄</td>
    <td>操作</td>
  </tr>
  </thead>
  <tbody>
  <tr th:each="person:${list}">
    <td th:text="${person.username}"/>
    <td th:text="${person.sex}"/>
    <td th:text="${person.pwd}"/>
    <td>
      <a th:href="@{delete.do(id=${person.id},flag='del')}" onclick="return confirm('是否删除?')">删除</a>|
      <a th:href="@{updatepage.do(id=${person.id},flag='data')}">更新</a>
    </td>
  </tr>
  </tbody>
</table>
</body>
</html>